package com.demiroot.server.pages;

import com.demiroot.server.HTTPResponse;
import com.demiroot.server.HTTPResquest;



/**
 * Holds a webpage
 * 
 * VERY IMPORTANT NOTE: There will only be one instance of these running
 * around remember that. 
 * 
 * @author Sean Oczkowski
 *
 */
public interface Page {

	/**
	 * Note A page must have a Public static boolean isThisYou(String) method
	 * or the server can not find it!
	 */
	
	/**
	 * The vars is a map of all the content that was passed in if it was in 
	 * x-www-form-urlencoded format
	 * 
	 * head is the set of header data
	 * 
	 * the query can be gotten by asking the header
	 */
	public HTTPResponse getPage(HTTPResquest request);
}
